# New ASM File

haz_phase2_intro:
.asciiz "\nBeing in hazards, the hard part is done. You have done your research and think your knowledge is enough to write it out in verilog?"

haz_phase2_question1:
.asciiz "\nNow that it is time to show off your hazardous logic, do you...\n1. sit down have Fritz give you an introduction to verilog, write it all out and leave after 20 minutes.\n2. sit down with the rest of the teams and try and match your code with theirs, so that the whole processor works correctly.\n3. go talk to friends come back and find out your program is finished, and never look at it again.\n4. not show up at all and hope the rest of your team does it for you."

haz_fail:
.asciiz "\nYour team has finished the verilog code and it looks great. Now Time for phase 3 where you will inevitably meet your match. All you have to look forward to, is the integration overlords destroying your work and eating your face off!"

saeed:
.asciiz "\nYou are not sure what is going on in the class, or if your team even finished phase 2, but somehow you are passing the class so you will just keep doing the same thing. You are one step closer to a passed class without doing anywork. Onward to phase 3."

phase2_haz_start:

	li $a0, haz_phase2_intro
	jal libplp_uart_write_string
	nop

	li $a0, haz_phase2_question1
	jal libplp_uart_write_string
	nop

	# did you write it out on your own
	move $t0, $v0
	li $t1, 0x00000031
	beq $t0, $t1, haz_showoff
	nop
	# were you helpful to others
	move $t0, $v0
	li $t1, 0x00000032
	beq $t0, $t1, haz_showoff
	nop
	# talk to friends
	move $t0, $v0
	li $t1, 0x00000033
	beq $t0, $t1, haz_showoff
	nop
	# do the Saeed
	move $t0, $v0
	li $t1, 0x00000034
	beq $t0, $t1, the_saeed
	nop

haz_showoff:
	li $a0, haz_fail
	jal libplp_uart_write_string
	nop
	j phase_3_begin
	nop
the_saeed:
	li $a0, saeed:
	jal libplp_uart_write_string
	nop
	j phase_3_begin
	nop